package com.suli.multimedia.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author SuLi
 * @since 2022-03-15
 */
@Getter
@Setter
@AllArgsConstructor
@TableName("article_content")
public class ArticleContent implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 文章id
     */
      @TableId("article_id")
    private Integer articleId;

    /**
     * 文章内容
     */
    @TableField("article_content")
    private String articleContent;

    /**
     * 逻辑删除
     */
    @TableField(value = "is_deleted",fill = FieldFill.INSERT)
    @TableLogic
    private Integer isDeleted;

    public ArticleContent(Integer articleId, String articleContent) {
        this.articleId = articleId;
        this.articleContent = articleContent;
    }
}
